from django import forms

from App.bootstrap import BootStrapModelForm
from App.models import Case


class CaseForm(BootStrapModelForm):
    name_case = forms.CharField(
        label='案例名',
        widget=forms.TextInput(attrs={
            'placeholder': '请输入案例名',
        })
    )

    img_case = forms.ImageField(
        label='详情图',
    )

    class Meta:
        model = Case
        fields = '__all__'

